Add GtkSidebar
authorIkey Doherty <michael.i.doherty@intel.com>
Sat, 23 Aug 2014 16:38:42 +0000 (17:38 +0100)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 1 Oct 2014 04:44:46 +0000 (00:44 -0400)
commitcdd2651db054ecd6cd92c9d1ad728fff7cd7ff33
treece1487a7ac87c399581be1b30d4fe80759a92f22
parent3b08ba24b31702bd85901c8141d43d90fc6a2df4
Add GtkSidebar

GtkSidebar behaves internally much like GtkStackSwitcher, providing a vertical
sidebar like widget. It is virtually identical in appearance to the widget
currently used in GNOME Tweak Tool.

This widget is connected to a GtkStack, and builds its own contents as a
GtkListBox subclass, using the "title" child property to provide a consistent
navigatable widget.

Being a subclass of GtkListBox it benefits immediately from strong keyboard
navigation, and minimal changes are required for theming.

https://bugzilla.gnome.org/show_bug.cgi?id=735293

Signed-off-by: Ikey Doherty <michael.i.doherty@intel.com>
14 files changed:
demos/gtk-demo/Makefile.am
demos/gtk-demo/demo.gresource.xml
demos/gtk-demo/sidebar.c [new file with mode: 0644]
docs/reference/gtk/gtk-docs.sgml
docs/reference/gtk/gtk3-sections.txt
docs/reference/gtk/gtk3.types.in
docs/reference/gtk/images/sidebar.png [new file with mode: 0644]
docs/reference/gtk/visual_index.xml
gtk/Makefile.am
gtk/gtk.h
gtk/gtksidebar.c [new file with mode: 0644]
gtk/gtksidebar.h [new file with mode: 0644]
gtk/makefile.msc.in
tests/teststack.c